<!DOCTYPE html>
<html>
<head>
    <title>模具资料信息</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <!-- 复审 -->
    <div id="reviewLayer" style="display: none;">
        <form class="form-horizontal" style="width: 350px;">
            <div class="form-group">
                <div class="form-group">
                    <div class="col-sm-4 control-label">审核状态</div>
                    <div class="col-sm-8" style="margin-top: 6px">
                        <Radio-group v-model="moduleData.reviewStatus">
                            <Radio :label="1" ><span>审核通过</span></Radio>
                            <Radio :label="0" ><span>审核不通过</span></Radio>
                        </Radio-group>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-4 control-label">添加知识库</div>
                    <div class="col-sm-8" style="margin-top: 6px">
                        <Radio-group v-model="moduleData.knowledge">
                            <Radio :label="1"><span>是</span></Radio>
                            <Radio :label="0"><span>否</span></Radio>
                        </Radio-group>
                    </div>
                </div>
            </div>
        </form>
    </div>
	<div v-show="showList">
        <Row :gutter="16" style="margin: 8px 0px 0px 1px">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.moduleCode" @on-enter="query" placeholder="模具编码"></i-input>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
        </Row>
        <Row :gutter="16" style="margin: 3px 0px 0px 0px;">
            <div class="buttons-group">
                #if($shiro.hasPermission("moduledata:recheck"))
                <i-button type="success" @click="recheck"><i class="fa fa-gavel"></i>&nbsp;复审</i-button>
                #end
                #if($shiro.hasPermission("moduledata:review"))
                <i-button type="primary" @click="review"><i class="fa fa-gavel"></i>&nbsp;审核</i-button>
                #end
                #if($shiro.hasPermission("moduledata:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("moduledata:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("moduledata:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>
        </Row>
	    <table id="jqGrid"></table>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="moduleData" :rules="ruleValidate" :label-width="80">
            <Row>
                <i-col span="11">
                    <Form-item label="档案名称" prop="fileName">
                        <i-input v-model="moduleData.fileName" placeholder="档案名称"></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="模具编码" prop="moduleCode">
                        <i-input v-model="moduleData.moduleCode" placeholder="模具编码" readonly icon="md-arrow-dropdown-circle" @on-click="getModuleArchives"></i-input>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="模具号" prop="moduleNo">
                        <i-input v-model="moduleData.moduleNo" placeholder="模具号" readonly></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="模具类型" prop="moduleTypeName">
                        <i-input v-model="moduleTypeName" placeholder="模具类型" readonly></i-input>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="产品系列" prop="moduleProduct">
                        <i-input v-model="moduleData.moduleProduct" placeholder="产品系列" readonly></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <!--<Form-item label="添加知识库" prop="knowledge">
                <Radio-group v-model="moduleData.knowledge">
                    <Radio :label="1" ><span>是</span></Radio>
                    <Radio :label="0" ><span>否</span></Radio>
                </Radio-group>
            </Form-item>
            <Form-item label="修改时间" prop="updateTime">
                <i-input v-model="moduleData.updateTime" placeholder="修改时间"></i-input>
            </Form-item>
            <Form-item label="修改人" prop="updateUser">
                <i-input v-model="moduleData.updateUser" placeholder="修改人"></i-input>
            </Form-item>
            <Form-item label="创建时间" prop="createTime">
                <i-input v-model="moduleData.createTime" placeholder="创建时间"></i-input>
            </Form-item>
            <Form-item label="创建人" prop="createUser">
                <i-input v-model="moduleData.createUser" placeholder="创建人"></i-input>
            </Form-item>
            <Form-item label="删除标识" prop="delFlag">
                <i-input v-model="moduleData.delFlag" placeholder="删除标识"></i-input>
            </Form-item>
            <Form-item label="复审时间" prop="reviewTime">
                <i-input v-model="moduleData.reviewTime" placeholder="复审时间"></i-input>
            </Form-item>
            <Form-item label="复审状态" prop="reviewStatus">
                <i-input v-model="moduleData.reviewStatus" placeholder="复审状态"></i-input>
            </Form-item>
            <Form-item label="复审人" prop="reviewUser">
                <i-input v-model="moduleData.reviewUser" placeholder="复审人"></i-input>
            </Form-item>
            <Form-item label="审批状态" prop="approvalStatus">
                <i-input v-model="moduleData.approvalStatus" placeholder="审批状态"></i-input>
            </Form-item>
            <Form-item label="审批时间" prop="approvalTime">
                <i-input v-model="moduleData.approvalTime" placeholder="审批时间"></i-input>
            </Form-item>
            <Form-item label="审批人" prop="approvalUser">
                <i-input v-model="moduleData.approvalUser" placeholder="审批人"></i-input>
            </Form-item>-->
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px">返回</i-button>
                <i-button type="info" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
	</Card>
</div>

<script src="${rc.contextPath}/js/module/moduledata.js?_${date.systemTime}"></script>
</body>
</html>
